package com.rla.service;

import com.rla.domain.vo.VipUserRuleVo;
import com.rla.domain.bo.VipUserRuleBo;
import com.rla.common.core.page.TableDataInfo;
import com.rla.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * 会员等级Service接口
 *
 * @author rla
 * @date 2025-08-30
 */
public interface IVipUserRuleService {

    /**
     * 查询会员等级
     */
    VipUserRuleVo queryById(String id);


    Map<String,Object> getUserRuleInfoByUserId(String userId);

    /**
     * 查询会员等级列表
     */
    TableDataInfo<VipUserRuleVo> queryPageList(VipUserRuleBo bo, PageQuery pageQuery);

    /**
     * 查询会员等级列表
     */
    List<VipUserRuleVo> queryList(VipUserRuleBo bo);

    /**
     * 新增会员等级
     */
    Boolean insertByBo(VipUserRuleBo bo);

    /**
     * 修改会员等级
     */
    Boolean updateByBo(VipUserRuleBo bo);

    /**
     * 校验并批量删除会员等级信息
     */
    Boolean deleteWithValidByIds(Collection<String> ids, Boolean isValid);
}
